package com.pfizer.pfizerExpertForPad;

import android.app.Application;

import com.pfizer.DB.DataHelper;

/**
 * pfizerApplication--<b>定義程序級的全局變量，每個頁面都可以引用這些變量</b>
 * 
 * @author krui
 * 
 */
public class pfizerApplication extends Application {
	private boolean isInit = false;
	private String UserLoginProveCode = "B2482062B8272DB635286F2907B2B563";
	private String MainProveCode = "CBC30CF33DCE33F634957EC1EA866A57";
	private String UserID = "test1";
	private String UserName= "";
	private long loopCount = 0;
	private int maxDownCount = 4;
	private int CurrDownCount = 0;
	private DataHelper dbHelper = null;
	private boolean bIsNetConn = false;
	private boolean bDataSyncing = false;
	private boolean bDownload = false;
	private String CaseCode = "";
	private long lstDownTime = 0;
	private String WebUrl = "http://www.testing.htm.tw";
	private int VideoUpdInterValTime = 6;
	private int HandoutUpdInterValTime = 36;
	private int SurveyUpdInterValTime = 6;
	private int NewsUpdInterValTime = 6;
	private int MsgUpdInterValTime = 4;
	private String pfizerDir = "/sdcard/pfizer/";
	private String ObjFrom = "Android";
	private String ObjID = "0123456789";
	private double Duty_Lat = 0.0;
	private double Duty_Lng = 0.0;
	
	public String getUserName() {
		return UserName;
	}

	public void setUserName(String userName) {
		UserName = userName;
	}

	
	

	public double getDuty_Lat() {
		return this.Duty_Lat;
	}

	public void setDuty_Lat(double Duty_Lat) {
		this.Duty_Lat = Duty_Lat;
	}

	public double getDuty_Lng() {
		return this.Duty_Lng;
	}

	public void setDuty_Lng(double Duty_Lng) {
		this.Duty_Lng = Duty_Lng;
	}

	public void setIsInit(boolean _b) {
		this.isInit = _b;
	}

	public boolean getIsInit() {
		return this.isInit;
	}

	public void setMainProveCode(String _code) {
		this.MainProveCode = _code.toUpperCase();
	}

	public String getMainProveCode() {
		return this.MainProveCode;
	}

	public void setUserLoginProveCode(String _code) {
		this.UserLoginProveCode = _code.toUpperCase();
	}

	public String getUserLoginProveCode() {
		return this.UserLoginProveCode;
	}

	public void setUserID(String _userid) {
		this.UserID = _userid;
	}

	public String getUserID() {
		return this.UserID;
	}

	public void setLoopCount(long _count) {
		this.loopCount = _count;
	}

	public void AutoLoopPlus() {
		this.loopCount++;
	}

	public long getLoopCount() {
		return this.loopCount;
	}

	public int getMaxDownCount() {
		return this.maxDownCount;
	}

	public void AutoDownPlus() {
		this.CurrDownCount++;
	}

	public void AutoDownSubt() {
		this.CurrDownCount--;
	}

	public int getCurrDownCount() {
		return this.CurrDownCount;
	}

	public void setDataHelper(DataHelper _Helper) {
		this.dbHelper = _Helper;
	}

	public DataHelper getDataHelper() {
		return this.dbHelper;
	}

	public void setNetConnStatus(Boolean _IsNetConn) {
		this.bIsNetConn = _IsNetConn;
	}

	public boolean getNetConnStatus() {
		return this.bIsNetConn;
	}

	public void setDataSyncing(Boolean _DataSyncing) {
		this.bDataSyncing = _DataSyncing;
	}

	public boolean getDataSyncing() {
		return this.bDataSyncing;
	}

	public void setCaseCode(String _code) {
		this.CaseCode = _code;
	}

	public String getCaseCode() {
		return this.CaseCode;
	}

	public void setLastDownTime(long _lstDownTime) {
		this.lstDownTime = _lstDownTime;
	}

	public long getLastDownTime() {
		return this.lstDownTime;
	}

	public void setWebUrl(String _WebUrl) {
		this.WebUrl = _WebUrl;
	}

	public String getWebUrl() {
		return this.WebUrl;
	}

	public void setPfizerDir(String _dir) {
		this.pfizerDir = _dir;
	}

	public String getPfizerDir() {
		return this.pfizerDir;
	}

	public String getObjFrom() {
		return this.ObjFrom;
	}

	public void setObjID(String _ObjID) {
		this.ObjID = _ObjID;
	}

	public String getObjID() {
		return this.ObjID;
	}

	public void setVideoUpdInterValTime(String _VideoUpdInterValTime) {
		this.VideoUpdInterValTime = new Integer(_VideoUpdInterValTime)
				.intValue();
	}

	public void setVideoUpdInterValTime(int _VideoUpdInterValTime) {
		this.VideoUpdInterValTime = _VideoUpdInterValTime;
	}

	public int getVideoUpdInterValTime() {
		return this.VideoUpdInterValTime;
	}

	public void setHandoutUpdInterValTime(String _HandoutUpdInterValTime) {
		this.HandoutUpdInterValTime = new Integer(_HandoutUpdInterValTime)
				.intValue();
	}

	public void setHandoutUpdInterValTime(int _HandoutUpdInterValTime) {
		this.HandoutUpdInterValTime = _HandoutUpdInterValTime;
	}

	public int getHandoutUpdInterValTime() {
		return this.HandoutUpdInterValTime;
	}

	public void setSurveyUpdInterValTime(String _SurveyUpdInterValTime) {
		this.SurveyUpdInterValTime = new Integer(_SurveyUpdInterValTime)
				.intValue();
	}

	public void setSurveyUpdInterValTime(int _SurveyUpdInterValTime) {
		this.SurveyUpdInterValTime = _SurveyUpdInterValTime;
	}

	public int getSurveyUpdInterValTime() {
		return this.SurveyUpdInterValTime;
	}

	public void setNewsUpdInterValTime(String _NewsUpdInterValTime) {
		this.NewsUpdInterValTime = new Integer(_NewsUpdInterValTime).intValue();
	}

	public void setNewsUpdInterValTime(int _NewsUpdInterValTime) {
		this.NewsUpdInterValTime = _NewsUpdInterValTime;
	}

	public int getNewsUpdInterValTime() {
		return this.NewsUpdInterValTime;
	}

	public void setMsgUpdInterValTime(String _MsgUpdInterValTime) {
		this.MsgUpdInterValTime = new Integer(_MsgUpdInterValTime).intValue();
	}

	public void setMsgUpdInterValTime(int _MsgUpdInterValTime) {
		this.MsgUpdInterValTime = _MsgUpdInterValTime;
	}

	public int getMsgUpdInterValTime() {
		return this.MsgUpdInterValTime;
	}

	public void setDownloadFlag(Boolean _Download) {
		this.bDownload = _Download;
	}

	public boolean getDownloadFlag() {
		return this.bDownload;
	}
}
